package com.isoft.filelistener.dao;

import com.isoft.filelistener.entity.DfmeSonAfid;
import com.isoft.filelistener.entity.MetaData;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface DfmeAfidDao {
    @Insert("insert into TEAM_03.DFME_AFID(SENDER,RECEIVER,SEQUENCE,SEND_TIME,TYPE,STYP," +
            "FLIGHT_ID,FLIGHT_IDENTIFITY,FLIGHT_DATE) values(" +
            "#{metaData.sender},#{metaData.receiver},#{metaData.sequence},#{metaData.sendTime},#{metaData.type},#{metaData.styp},#{afid.flightId},#{afid.flightIdentifity}" +
            ",#{afid.flightDate})")
    int InsertDfmeAfid(@Param("metaData") MetaData metaData, @Param("afid") DfmeSonAfid afid);
}
